Hệ thống quản lý ISP trong PHP

1 <?php
2
3     
// Start from getting the header which contains some settings we need
4     require_once
'includes/headx.php';
5
6     
// Prevent admin from comming back here
7     
// if he's already logged in
8     
if (isset($_SESSION['admin_session']) )
9     {
10         $commons->redirectTo(SITE_PATH.
'index.php');
11     }
12
13 ?>
14 <!DOCTYPE html>
15 <html>
16 <head>
17     <title>Authenticate yourself !</title>
18     <link rel=
"stylesheet" type="text/css" href="component/css/style.css">
19     <style media=
"screen">
20     body {
21         background-image: url(
"component/img/bg.png");
22         background-position: center center;
23         background-repeat: no-repeat;
24         background-attachment:
fixed;
25         background-size: cover;
26         background-color: lightblue;
27     }
28     </style>
29 </head>
30 <body>
31 <div
class="admin-box">
32
33     <?php
if ( isset($_SESSION['error']) ): ?>
34         <div
class="pannel panel-warning">
35             <?= $_SESSION[
'error'] ?>
36         </div>
37     <?php session::destroy(
'error'); endif ?>
38
39       <form action=
"approve.php" method="post" class="form-signin">
40             <h2
class="form-signin-heading">Authenticate yourself!</h2>
41                 <input type=
"text" name="username" id="username" class="form-control" placeholder="username" required autofocus>
42                 <input type=
"password" name="password" id="password" class="form-control" placeholder="password" required>
43                 <button type=
"submit" class="btn btn-default">Log in</button>
44       </form>
45 </div>
46 <?php include
'includes/footer.php'; ?>
47 </body>
48 </html>


Gõ tìm kiếm nhanh...